#define _CRT_SECURE_NO_WARNINGS 1
int Add(int num1, int num2) {
    // write code here


    int total = 0;
    while (num1--)
        total++;
    while (num2--)
        total++;

    return total;
}

int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize) {

    for (int i = 0; i < numsSize; i++)
    {
        nums[abs(nums[i]) - 1] = -abs(nums[abs(nums[i]) - 1]);
    }

    int count = 0;
    int* ret = (int*)malloc(sizeof(int) * 100000);

    for (int i = 0; i < numsSize; i++)
    {
        if (nums[i] > 0)
            ret[count++] = i + 1;
    }

    *returnSize = count;
    return ret;
}